import groovy.beans.Bindable

class EasyTranslateModel {
    String textSource
    @Bindable def lang1Result
    @Bindable def lang2Result
    @Bindable boolean busy = false
    @Bindable boolean result1Busy = false
    @Bindable boolean result2Busy = false
    @Bindable String language1 = 'ENGLISH'
    @Bindable String language2 = 'GERMAN'
    
    void setAllBusy(boolean value) {
        busy = value
        result1Busy = value
        result2Busy = value
    }
}
